package com.geodroid.android.graphics;

import android.graphics.RectF;


public class LineF {

	
	public float a,b,c ; 
	
	/**
	 * @param a
	 * @param b
	 * @param c
	 */
	public LineF(float a, float b, float c) {
		super();
		this.a = a;
		this.b = b;
		this.c = c;
	}

	public LineF() {
		this(0f,0f,0f) ;
	}

	public boolean intersect(RectF r){
		return ((
			(a*r.left + b*r.bottom +c) 
			*
			(a*r.left + b*r.top +c)
			*
			(a*r.right + b*r.bottom +c)
			*
			(a*r.right + b*r.top +c)
			)<=0);
	}
}
